package cc.md888.app.model.proxy;

import cc.md888.app.enums.IpInfoChannelEnum;
import cc.md888.app.enums.ProxyProtocolEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class ProxyInfoCmd {

    @ApiModelProperty(value = "查询渠道：IP123、IPInfo，默认：IP123", example = "IP123")
    private String channel = IpInfoChannelEnum.IP123.name();

    @ApiModelProperty(value = "代理协议: Socks5, HTTP，默认：Socks5", example = "Socks5")
    @NotEmpty(message = "代理协议不能为空")
    private String protocol = ProxyProtocolEnum.Socks5.name();

    @ApiModelProperty("代理主机")
    @NotEmpty(message = "代理主机不能为空")
    private String host;

    @ApiModelProperty("端口号")
    @NotEmpty(message = "端口号不能为空")
    private int port;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;
}
